<!-- 美妆分类 -->
<template>
  <div class='Eakeup-classification'>
    <div class="top">
      <div @click="screening" class="screening">筛选</div>
      <div v-if='open' class="isshell">
        <div>全部</div>
        <div>短视频</div>
        <div>直播视频</div>
        <div>其他</div>
      </div>
    </div>
    <div class="card">
      <div class="shell" v-for="(item,index) in list" :key="index">
        <div class="left">
          <div class="img">
            <!-- <img class="imgs" src="#" alt="图片"> -->
            <div class="audit">审核中</div>
          </div>

          <div class="instructions">
            <div class="name">眉笔的巧妙用法第二期</div>
            <div class="time">2020/02/25</div>
            <div class="bottom">
              <div class="isicon">
                <!-- <img src="#" alt="图标"> -->
              </div>
              <div class="number">235</div>
            </div>
          </div>
        </div>
        <div class="icon">
          <div class="video">短视频</div>
          <div @click="check(index)" class="img">
            <!-- <img src="" alt=""> -->
          </div>
          <div class="bounced" v-if='index === count'>
            <div class="delete">删除视频</div>
            <div class="check">查看商品</div>
            <div class="sanjao"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="aaa"></div>
  </div>
</template>

<script>

export default {
  // import引入的组件需要注入到对象中才能使用
  components: {},
  // 接受父组件的传值
  props: {},

  data () {
    // 这里存放数据
    return {
      count: '',
      open: false,
      list: [1, 2, 3]
    }
  },
  // 监听属性 类似于data概念
  computed: {},
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {
    check (value) {
      this.count = value
    },
    screening () {
      this.open = !this.open
    }
  },
  // 生命周期 - 创建完成（可以访问当前this实例）
  created () {

  },
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted () {

  },
  // 生命周期 - 创建之前
  beforeCreate () { },
  // 生命周期 - 挂载之前
  beforeMount () { },
  // 生命周期 - 更新之前
  beforeUpdate () { },
  // 生命周期 - 更新之后
  updated () { },
  // 生命周期 - 销毁完成
  destroyed () { },
  // 如果页面有keep-alive缓存功能，这个函数会触发
  activated () { }
}
</script>
<style lang='scss' scoped>
//@import url(); 引入公共css类
.Eakeup-classification {
  .top {
    height: 21px;
    position: relative;
    .screening {
      line-height: 21px;
      font-size: 15px;
      font-family: PingFang SC, PingFang SC-Regular;
      font-weight: 400;
      text-align: right;
      color: #222222;
      padding-right: 11px;
    }
    .isshell {
      width: 67.5px;
      height: 100px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      background: #ffffff;
      box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
      position: absolute;
      top: 27px;
      right: 10px;
      z-index: 10;
      div {
        height: 15px;
        line-height: 15px;
        font-size: 11px;
        font-family: PingFang SC, PingFang SC-Regular;
        font-weight: 400;
        text-align: center;
        color: #222222;
      }
    }
    .isshell::before {
      content: "";
      // width: 10px;
      // height: 10px;
      border-left: 5px solid transparent;
      border-right: 5px solid transparent;
      border-bottom: 10px solid #999;
      position: absolute;
      top: -10px;
      right: 10px;
      // background: #000;
    }
  }
  .card {
    // margin-top: 20px;
    .shell {
      height: 100px;
      padding: 0 23px 0 15px;
      border-bottom: 1px solid #999;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .left {
        display: flex;
        .img {
          width: 80px;
          height: 70px;
          background-color: yellow;
          border-radius: 2.5px;
          position: relative;
          .audit {
            height: 20px;
            opacity: 0.75;
            background: #ff9f31;
            border-radius: 0px 0px 2.5px 2.5px;
            width: 100%;
            line-height: 20px;
            font-size: 10px;
            font-family: PingFang SC, PingFang SC-Regular;
            font-weight: 400;
            text-align: center;
            color: #ffffff;
            position: absolute;
            bottom: 0px;
            left: 0px;
          }
        }
        .instructions {
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          padding-left: 18px;
          .name {
            padding-top: 5px;
            font-size: 15px;
            font-family: PingFang SC, PingFang SC-Bold;
            font-weight: 700;
            text-align: left;
            color: #222222;
          }
          .time {
            font-size: 12px;
            font-family: PingFang SC, PingFang SC-Regular;
            font-weight: 400;
            text-align: left;
            color: #999999;
          }
          .bottom {
            display: flex;
            .isicon {
              width: 12px;
              height: 12px;
              background-color: yellow;
            }
            .number {
              font-size: 10px;
              font-family: PingFang SC, PingFang SC-Regular;
              font-weight: 400;
              text-align: left;
              color: #999999;
              margin-left: 5px;
            }
          }
        }
      }
      .icon {
        height: 70px;
        display: flex;
        align-items: flex-end;
        position: relative;
        .video {
          font-size: 10px;
          font-family: PingFang SC, PingFang SC-Regular;
          font-weight: 400;
          text-align: left;
          color: #4673f7;
          margin-right: 16.5px;
        }
        .img {
          width: 8px;
          height: 18px;
          background-color: yellow;
        }
        .bounced {
          display: flex;
          flex-direction: column;
          justify-content: space-around;
          width: 67.5px;
          height: 50px;
          background: #ffffff;
          border-radius: 2.5px;
          box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.16);
          position: absolute;
          top: -4px;
          right: -1px;
          .delete {
            height: 20px;
            line-height: 20px;
            font-size: 11px;
            font-family: PingFang SC, PingFang SC-Regular;
            font-weight: 400;
            text-align: center;
            color: #222222;
          }
          .check {
            height: 20px;
            line-height: 20px;
            font-size: 11px;
            font-family: PingFang SC, PingFang SC-Regular;
            font-weight: 400;
            text-align: center;
            color: #222222;
          }
          .sanjao {
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 10px solid #fff;
            position: absolute;
            bottom: -10px;
            right: 10px;
            border-radius: 2px;
          }
        }
      }
    }
  }
}
</style>